﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="author" content="ISUX">
    <meta name="format-detection" content="telephone=no" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <title>校友回馈</title>
    <link rel="stylesheet" href="/ViewMob/css/wxui.css">
    <link rel="stylesheet" href="/ViewMob/css/group.css">
    <link href="//at.alicdn.com/t/font_qqztt1cpq09kke29.css" rel="stylesheet" />
    <link href="/ViewMob/js/layer/need/layer.css" rel="stylesheet" />
    <script src="/ViewMob/js/layer/layer.m.js"></script>
    <style>
        .ms-controller, [ms-controller] {
            display: none;
        }

        .page {
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            opacity: 0;
            z-index: 1;
        }

        .list-chart {
            background: #fff;
            margin-bottom: 5px;
            overflow: hidden;
        }

            .list-chart dd {
                float: left;
                width: 25%;
                padding: 5px 0;
                text-align: center;
                font-size: 13px;
            }

        dt, dd, dl {
            margin: 0 !important;
        }

        .sel {
            background: #f5eeee;
        }

        .page.js_show {
            opacity: 1;
        }

        .page__hd {
            padding: 24px;
            text-align: center;
            background: #4faeff url(../images/bg-account.jpg) 100% 100%;
            color: white;
        }

        .page__bd_spacing {
            padding: 0 15px;
        }

        .page__ft {
            padding-top: 40px;
            padding-bottom: 10px;
            text-align: center;
        }

            .page__ft img {
                height: 19px;
            }

            .page__ft.j_bottom {
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
            }

        .page__title {
            text-align: left;
            font-size: 20px;
            font-weight: 400;
        }

        .page__desc {
            margin-top: 5px;
            text-align: left;
            font-size: 14px;
        }

        .page.home .page__intro-icon {
            margin-top: -.2em;
            margin-left: 5px;
            width: 16px;
            height: 16px;
            vertical-align: middle;
        }

        .page.home .page__title {
            font-size: 0;
            margin-bottom: 15px;
        }


        .head-oneself {
            width: 4.5rem;
            height: 4.5rem;
            margin-left: 20px;
        }

            .head-oneself img {
                border: 2px solid rgba(0,0,0,.2);
            }

     
        .ybl {
            background-color: #10c55b;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            line-height: 50px;
            color: antiquewhite;
            font-size: 16px;
        }

        .wbl {
            background-color: lightgray;
            font-size: 20px;
            color: white;
        }

        .YZ {
            POSITION: absolute;
            RIGHT: 10PX;
            TOP: 10PX;
            FONT-SIZE: 70PX;
            COLOR: #ff0000;
            line-height: 70px;
        }
    </style>
</head>
<body style="background-color: #f8f8f8;" ms-controller="PAGE">
    <div class="page__hd">
        <h1 class="page__title">校友回馈</h1>
        <p class="page__desc">说明:选择项目进行捐赠</p>
    </div>
    <div class="page__bd">
        <!--<a href="javascript:;" class="weui-btn weui-btn_primary">点击展现searchBar</a>-->






        <div class="weui-panel" style="margin-top: 0px">
            <div class="weui-panel__hd">共{{arrxm.size()}}个捐赠项目</div>
            <div ms-repeat-item="arrxm" style="border-top: 1px solid #E5E5E5;">
                <div class="weui-panel__bd">
                    <a class="weui-media-box weui-media-box_appmsg">
                        <div class="weui-media-box__hd ybl">
                            {{$index+1}}
                        </div>
                        <div class="weui-media-box__bd">
                            <h4 class="weui-media-box__title" style="font-size: 15px"><span class=" color2">{{item.xmmc}}</span></h4>

                            <ul class="weui-media-box__info" style="margin-top: 5px; color: #999999">
                                <li class="weui-media-box__info__meta">发起单位:{{item.fqdw}}</li>

                            </ul>
                            <ul class="weui-media-box__info" style="margin-top: 5px; margin-left: 5px">
                                <li class="weui-media-box__info__meta">{{item.xmsm|html}}</li>
                            </ul>
                        </div>
                        <i class=" iconfont icon-tuihui" style="font-size: 34px; color: red;" ms-click="xstk(item)"></i>
                    </a>
                </div>


                <div class="weui-form-preview__ft">
                    <a class="weui-form-preview__btn weui-form-preview__btn_primary" href="javascript:" ms-click="zxjz(item)">在线捐助</a>
                    <a class="weui-form-preview__btn weui-form-preview__btn_primary" href="javascript:" ms-click="jzbd(item)">捐赠榜单</a>

                </div>
            </div>

        </div>


        <div class="js_dialog" id="divbm" style="display: none;">
            <div class="weui-mask"></div>
            <div class="weui-dialog" style="width: 96%; max-width: 1000px">
                <div class="weui-dialog__hd">
                    <strong class="weui-dialog__title">在线捐赠<br />
                    </strong>
                </div>

                <div class="weui-dialog__bd" style="padding-left: .6em; padding-right: .6em;">
                    <div class="weui-cells weui-cells_form">
                        <div class="weui-cell">
                            <div class="weui-cell__hd">
                                <label class="weui-label">捐赠金额</label>
                            </div>
                            <div class="weui-cell__bd">
                                <input class="weui-input" type="number" placeholder="填写金额" value="" id="jzje">
                            </div>
                        </div>

                    </div>
                </div>
                <div class="weui-dialog__ft">
                    <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_default closedig" id="closebm">取消</a>
                    <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary close" ms-click="juanzen()">确认捐赠</a>
                </div>
            </div>
        </div>
        <div class="js_dialog" style="width: 96%; max-width: 1000px; display: none" id="divbmqk">
            <div class="weui-mask"></div>
            <div class="weui-dialog" style="width: 96%; max-width: 1000px">
                <div class="weui-dialog__hd">
                    <strong class="weui-dialog__title">活动报名<br />
                    </strong>
                </div>

                <div class="weui-dialog__bd" style="padding-left: .6em; padding-right: .6em;">
                    <div class="list-chart">
                        <dl>
                            <dd style="width: 40%">姓名
                            </dd>
                            <dd style="width: 30%">联系电话
                            </dd>
                            <dd style="width: 30%">人数
                            </dd>

                        </dl>
                    </div>

                    <div class="list-chart" ms-repeat-item="bmqkdata" ms-class="sel:$index%2==0">
                        <dl>
                            <dd style="width: 40%">{{item.name}}
                            </dd>
                            <dd style="width: 30%">{{item.tel}}
                            </dd>
                            <dd style="width: 30%">{{item.num}}
                            </dd>

                        </dl>
                    </div>
                </div>
                <div class="weui-dialog__ft">
                    <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_default closedig">关闭</a>
                </div>
            </div>
        </div>

    </div>

    <script src="/ViewMob/js/zepto.min.js"></script>
    <script src="/ViewMob/js/weui.min.js"></script>
    <script src="/ViewMob/js/avalon1.47.js"></script>
    <script src="/ViewMob/js/ComFunJS.js"></script>

    <script type="text/javascript" class="searchbar js_show">
        var model = avalon.define({
            $id: "PAGE",
            arrxm: [],
            nouser: ComFunJS.getCookie("UserName"),
            iscanbm: "1",
            selitem: {},
            bmqkdata: [],
            baoming: function () {
                //var acid = model.selitem.ID;
                //$.getJSON("/API/VIEWAPI.ashx?Action=BASE_ADDHDLIST&r=" + Math.random(), { actname: $("#bmrxm").val(), acttel: $("#bmrlxfs").val(), actnum: $("#bmrrs").val(), actid: acid }, function (resultData) {
                //    if (resultData.ErrorMsg == "") {
                //        ComFunJS.winsuccess("报名成功")
                //        $(".js_dialog").fadeOut(200);

                //    }
                //});
            },
            gethdzt: function (item) {
               // return Date.parse(item.act_time) - Date.parse(ComFunJS.getnowdate('yyyy-mm-dd hh:mm:ss')) < 0 ? "已结束" : "正在进行";
            },
            zxjz: function (item) {
                model.selitem = item;
                $("#divbm").fadeIn(200);

            },
            juanzen: function () {
                //需要把域名改成可信域名
               // var redirect_uri = encodeURI("http://wjw.cczu.edu.cn/ViewMob/UI/UI_PAY.html?orderid=32819&showwxpaytitle=1&r=" + Math.random());
               // var url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx1bce1c0e318b9f1e&redirect_uri=" + redirect_uri + "&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect";
               // window.location = url;
            },
            viewbmqk: function (item) {
               


            }
        })
        avalon.ready(function () {
            $(".closedig").click(function () {
                $(".js_dialog").fadeOut(200);
            })

            $.getJSON("/API/VIEWAPI.ashx?ACTION=COM_GETJZXM", {}, function (result) {
                model.arrxm = result.Result;
            })

        })
    </script>
</body>
</html>
